package com.idealighter.game.roomcard.games.mustniuniu.constant;

/**
 * @ClassName MustNiuNiuCardType.
 * @Description 牌型赔率设置
 * @date 2018年5月22日 下午5:51:41 .
 */
public enum MustNiuNiuCardType {
  MEI_NIU(0, "没牛"),

  NIU_1(1, "牛1"),

  NIU_2(2, "牛2"),

  NIU_3(3, "牛3"),

  NIU_4(4, "牛4"),

  NIU_5(5, "牛5"),

  NIU_6(6, "牛6"),

  NIU_7(7, "牛7"),

  NIU_8(8, "牛8"),

  NIU_9(9, "牛9"),

  NIU_NIU(10, "牛牛"),

  SHUN_ZI(11, "顺子牛"),

  TONG_HUA(12, "同花牛"),

  WU_HUA(13, "五花牛"),

  HU_LU(14, "葫芦牛"),

  NIU_ZHA(15, "炸弹牛"),

  WUXIAO(16, "五小牛");

  public final int niu;
  public final String name;

  private MustNiuNiuCardType(int niu, String name) {
    this.niu = niu;
    this.name = name;
  }

  /**
   * @Title geCardsType.
   * @Description 获取牌型
   * @date 2018年6月14日 下午4:06:29
   * @param niu .
   * @return .
   */
  public static MustNiuNiuCardType geCardsType(int niu) {
    for (MustNiuNiuCardType cardsType : MustNiuNiuCardType.values()) {
      if (cardsType.niu == niu) {
        return cardsType;
      }
    }

    return null;
  }
}
